|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectandroid.support.v4.app.Fragment
com.facebook.widget.PickerFragment<GraphPlace>
com.facebook.widget.PlacePickerFragment
public class PlacePickerFragment
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.facebook.widget.PickerFragment |
|---|
PickerFragment.GraphObjectFilter<T>, PickerFragment.OnDataChangedListener, PickerFragment.OnDoneButtonClickedListener, PickerFragment.OnErrorListener, PickerFragment.OnSelectionChangedListener |
| Nested classes/interfaces inherited from class android.support.v4.app.Fragment |
|---|
Fragment.InstantiationException, Fragment.SavedState |
| Field Summary | |
|---|---|
static int |
DEFAULT_RADIUS_IN_METERS
The default radius around the center point to search. |
static int |
DEFAULT_RESULTS_LIMIT
The default number of results to retrieve. |
static String |
LOCATION_BUNDLE_KEY
The key for a Location parameter in the fragment's Intent bundle to indicate what geographical location should be the center of the search. |
static String |
RADIUS_IN_METERS_BUNDLE_KEY
The key for an int parameter in the fragment's Intent bundle to indicate the radius in meters around the center point to search. |
static String |
RESULTS_LIMIT_BUNDLE_KEY
The key for an int parameter in the fragment's Intent bundle to indicate what how many results to return at a time. |
static String |
SEARCH_TEXT_BUNDLE_KEY
The key for a String parameter in the fragment's Intent bundle to indicate what search text should be sent to the service. |
static String |
SHOW_SEARCH_BOX_BUNDLE_KEY
The key for a boolean parameter in the fragment's Intent bundle to indicate that the fragment should display a search box and automatically update the search text as it changes. |
| Fields inherited from class com.facebook.widget.PickerFragment |
|---|
DONE_BUTTON_TEXT_BUNDLE_KEY, EXTRA_FIELDS_BUNDLE_KEY, SHOW_PICTURES_BUNDLE_KEY, SHOW_TITLE_BAR_BUNDLE_KEY, TITLE_TEXT_BUNDLE_KEY |
| Constructor Summary | |
|---|---|
PlacePickerFragment()
Default constructor. |
|
PlacePickerFragment(Bundle args)
Constructor. |
|
| Method Summary | |
|---|---|
Location |
getLocation()
Gets the location to search around. |
int |
getRadiusInMeters()
Gets the radius in meters around the location to search. |
int |
getResultsLimit()
Gets the number of results to retrieve. |
String |
getSearchText()
Gets the search text (e.g., category, name) to search for. |
GraphPlace |
getSelection()
Gets the currently-selected place. |
void |
onActivityCreated(Bundle savedInstanceState)
|
void |
onAttach(Activity activity)
|
void |
onDetach()
|
void |
onInflate(Activity activity,
AttributeSet attrs,
Bundle savedInstanceState)
|
void |
onSearchBoxTextChanged(String searchText,
boolean forceReloadEventIfSameText)
Sets the search text and reloads the data in the control. |
void |
setLocation(Location location)
Sets the location to search around. |
void |
setRadiusInMeters(int radiusInMeters)
Sets the radius in meters around the location to search. |
void |
setResultsLimit(int resultsLimit)
Sets the number of results to retrieve. |
void |
setSearchText(String searchText)
Sets the search text (e.g., category, name) to search for. |
void |
setSettingsFromBundle(Bundle inState)
Updates the properties of the PickerFragment based on the contents of the supplied Bundle; calling Activities may use this to pass additional configuration information to the PickerFragment beyond what is specified in its XML layout. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String RADIUS_IN_METERS_BUNDLE_KEY
public static final String RESULTS_LIMIT_BUNDLE_KEY
public static final String SEARCH_TEXT_BUNDLE_KEY
public static final String LOCATION_BUNDLE_KEY
public static final String SHOW_SEARCH_BOX_BUNDLE_KEY
public static final int DEFAULT_RADIUS_IN_METERS
public static final int DEFAULT_RESULTS_LIMIT
| Constructor Detail |
|---|
public PlacePickerFragment()
public PlacePickerFragment(Bundle args)
args - a Bundle that optionally contains one or more values containing additional
configuration information for the Fragment.| Method Detail |
|---|
public Location getLocation()
public void setLocation(Location location)
location - the Location to search aroundpublic int getRadiusInMeters()
public void setRadiusInMeters(int radiusInMeters)
radiusInMeters - the radius in meterspublic int getResultsLimit()
public void setResultsLimit(int resultsLimit)
resultsLimit - the number of results to retrievepublic String getSearchText()
public void setSearchText(String searchText)
searchText - the search text
public void onSearchBoxTextChanged(String searchText,
boolean forceReloadEventIfSameText)
searchText - the search textforceReloadEventIfSameText - if true, will reload even if the search text has not changed; if false,
identical search text will not force a reloadpublic GraphPlace getSelection()
public void setSettingsFromBundle(Bundle inState)
PickerFragment
setSettingsFromBundle in class PickerFragment<GraphPlace>inState - a Bundle containing keys corresponding to properties of the PickerFragment
public void onInflate(Activity activity,
AttributeSet attrs,
Bundle savedInstanceState)
onInflate in class PickerFragment<GraphPlace>public void onActivityCreated(Bundle savedInstanceState)
onActivityCreated in class PickerFragment<GraphPlace>public void onAttach(Activity activity)
onAttach in class Fragmentpublic void onDetach()
onDetach in class PickerFragment<GraphPlace>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||